package y;

class yy extends Animals {
    void cry() {
        System.out.println("休息了");
    }
    String getAnimalsName() {
        return "yy";
    }
}
class dog extends Animals {
    void cry() {
        System.out.println("汪");
    }
    String getAnimalsName() {
        return "dog";
    }
}
class cat extends Animals {
    void cry() {
        System.out.println("喵");
    }
    String getAnimalsName() {
        return "cat";
    }
}